<div class="news-page-right margin-top">
    <div class="shop-sidebar-widget">
        <form action="/search" method="get">
            <input name="keyword" value="${keyword!}" type="search" placeholder="搜索...">
            <button type="submit"><i class="fa fa-search"></i></button>
        </form>
    </div>
    <div class="shop-sidebar-widget widget_product_categories">
        <h5>分类目录</h5>
        <ul class="product-categories">
            <@categoryTag method="list">
                <#list categories as cate>
                    <li><a href="${cate.fullPath!}">${cate.name!}</a></li>
                </#list>
            </@categoryTag>
        </ul>
    </div>
    <div class="shop-sidebar-widget">
        <h5>标签</h5>
        <ul class="Tags-catagory">
            <@tagTag method="list">
                <#list tags as tag>
                    <li>
                        <span class="custom-badge">
                            <a href="${tag.fullPath!}">${tag.name!}</a>
                            <sup>
                                ${tag.postCount!}
                            </sup>
                        </span>
                    </li>
                </#list>
            </@tagTag>
        </ul>
    </div>
    <div class="shop-sidebar-widget">
        <h5>最近新闻</h5>
        <ul class="featured-list">
            <@postTag method="latest" top="5">
                <#list posts as post>
                    <li class="sidebr-pro-widget">
                        <div class="product-thumb-info media">
                            <#if post.thumbnail?? && post.thumbnail!=''>
                                <div class="product-thumb-info-image">
                                    <a href="${post.fullPath!}"> 
                                        <img src="${post.thumbnail!}" alt="proudct">
                                    </a>
                                </div>
                            </#if>
                            <div class="product-thumb-info-content">
                                <h4><a href="${post.fullPath!}">${post.title!}</a></h4>
                                <p>发布于
                                    :<a href="${post.fullPath!}">${post.createTime?string('yyyy-MM-dd')}</a>
                                </p>
                                <p>创建人 :<a href="#">${user.nickname!}</a></p>
                            </div>
                        </div>
                    </li>
                </#list>
            </@postTag>
        </ul>
    </div>
</div>